package com.seven.service;

import com.seven.spring.SevenSpringApplicationContext;

public class Test {
    public static void main(String[] args) {
        SevenSpringApplicationContext applicationContext = new SevenSpringApplicationContext(AppConfig.class);

//        UserService userService = (UserService) applicationContext.getBean("userService");
//
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//
//        System.out.println(applicationContext.getBean("orderService"));
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();



    }
}
